package com.example.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试controller
 * 测试配置是否成
 * 使用@RestController注解返回字符串
 *
 * @author kangshuai
 */
@RestController
public class TestController {

    /**
     * 测试方法 返回 hello world
     *
     * @return
     */
    @GetMapping(value = "/hello", produces = {"application/json;charset=UTF-8"})
    public String hello() {
        return "hello world";
    }
}
